package pojo;

import java.util.Objects;

public class TbPmsRole {
    private Integer pmsRoleId;
    private Integer roleId;
    private Integer pmsId;
    private TbRole tbRoleByRoleId;
    private TbPms tbPmsByPmsId;

    public Integer getPmsRoleId() {
        return pmsRoleId;
    }

    public void setPmsRoleId(Integer pmsRoleId) {
        this.pmsRoleId = pmsRoleId;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public Integer getPmsId() {
        return pmsId;
    }

    public void setPmsId(Integer pmsId) {
        this.pmsId = pmsId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        TbPmsRole tbPmsRole = (TbPmsRole) o;
        return Objects.equals(pmsRoleId, tbPmsRole.pmsRoleId) &&
                Objects.equals(roleId, tbPmsRole.roleId) &&
                Objects.equals(pmsId, tbPmsRole.pmsId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(pmsRoleId, roleId, pmsId);
    }

    public TbRole getTbRoleByRoleId() {
        return tbRoleByRoleId;
    }

    public void setTbRoleByRoleId(TbRole tbRoleByRoleId) {
        this.tbRoleByRoleId = tbRoleByRoleId;
    }

    public TbPms getTbPmsByPmsId() {
        return tbPmsByPmsId;
    }

    public void setTbPmsByPmsId(TbPms tbPmsByPmsId) {
        this.tbPmsByPmsId = tbPmsByPmsId;
    }
}
